package com.example.demo02.listener.event;

public class BaseEvent<T> {
    public T data;
    public boolean success;

    public BaseEvent(T data, boolean success) {
        this.data = data;
        this.success = success;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public boolean getSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }
}
